<%@include file="../header.jsp"%>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
		<h1>Jadwal Sidang ${lab}</h1>
	</div>
	<!-- end page-heading -->
    
    <!-- start search -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
      <tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
			<div id="table-content">
                            <script>
                                function validateListJadwalSidang()
                                {
                                    if (document.listJadwalByDate.jenisSidang.value=="0")
                                    {
                                        alert("Silahkan pilih tahapan sidang terlebih dahulu !");
                                        document.listJadwalByDate.jenisSidang.focus();
                                        return false;
                                    }
                                }
                            </script>
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" id="id-form">
                                    <form name="listJadwalByDate" id="mainform" action="SidangTAController?page=listJadwalSidang" onSubmit="return validateListJadwalSidang()" method="post">
					<tr>
					  <th width="38" valign="top">Tahapan Sidang</th>
					  <td width="34" align="center" valign="middle">:</td>
					  <td width="940"><select name="jenisSidang" class="styledselect_form_1">
                                            <option value="0">-- PILIH TAHAPAN SIDANG--</option>
					    <option value="SIDANG PROPOSAL" <c:if test="${jenisSidang == 'SIDANG PROPOSAL'}" >selected="selected"</c:if> >SIDANG PROPOSAL</option>
					    <option value="SIDANG FINAL" <c:if test="${jenisSidang == 'SIDANG FINAL'}" >selected="selected"</c:if>>SIDANG FINAL</option>
					    </select></td>
                                        </tr>
                                        <tr>
                                            <th width="130" valign="top">Tanggal sidang</th>
                                            <td width="29" valign="middle" align="center">:</td>
                                            <td width="403">
                                                <input id="tanggalMulai" name="tglSidang" class="inp-form" type="text" value="${tglSidang}"/>
                                            </td>
                                            <td width="187" ></td>
                                        </tr>   
					<tr>
					  <th>&nbsp;</th>
					  <td valign="top">&nbsp;</td>
					  <td valign="top"><input value="" class="form-tampilkan" type="submit" /></td>
                                        </tr>
                                    </form>
                            </table>
                                            
                                <c:if test="${pesan == 'sukses'}">
				<!--  start message-green -->
				<div id="message-green">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="green-left">Penjadwalan ${jenisSidang} untuk NRP ${idUser} berhasil dilakukan</td>
					<td class="green-right"><a class="close-green"><img src="images/table/icon_close_green.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-green -->
                                </c:if>
                                
                                <c:if test="${pesan == 'gagal'}">
                                <!--  start message-red -->
				<div id="message-red">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="red-left">Penjadwalan ${jenisSidang} untuk NRP ${idUser} gagal dilakukan</td>
					<td class="red-right"><a class="close-red"><img src="images/table/icon_close_red.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-red -->
                                </c:if>
                                
				<!--  start product-table ..................................................................................... -->
				<form id="mainform" action="">
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
                                        <th width="56" class="table-header-repeat line-left "><a href="">No</a></th>
					<th width="100" class="table-header-repeat line-left "><a href="">NRP</a></th>
                                        <th width="200" class="table-header-repeat line-left "><a href="">Nama</a></th>
                                        <th width="600" class="table-header-repeat line-left "><a href="">Judul</a></th>
					<th width="173" class="table-header-repeat line-left "><a href="">Tanggal</a></th>
					<th width="173" class="table-header-repeat line-left "><a href="">Waktu </a></th>
					<th width="173" class="table-header-repeat line-left "><a href="">Tempat </a></th>
                                        <th width="173" class="table-header-repeat line-left minwidth-1"><a href="">Pembimbing 1</a></th>
                                        <th width="173" class="table-header-repeat line-left minwidth-1"><a href="">Pembimbing 2</a></th>
                                        <th width="173" class="table-header-repeat line-left minwidth-1"><a href="">Penguji 1</a></th>
                                        <th width="173" class="table-header-repeat line-left minwidth-1"><a href="">Penguji 2</a></th>
					<th width="" class="table-header-repeat line-left"><a href="">Detail</a></th>
                                </tr>
                                <% int i = 1;%>
                                
                                
                                <c:if test="${jenisSidang != null}">
                                <c:if test="${empty listJadwalSidang}">
                                    <tr>
                                        <td colspan="11" align="center" >Maaf, Data Tidak Ditemukan</td>
                                    </tr>
                                </c:if>
                                <c:forEach items="${listJadwalSidang}" var="listJadwalSidang" >
                                <tr>
                                        <td align="center"><% out.print(i); i++; %></td>
					<td>${listJadwalSidang.ta.user.idUser}</td>
                                        <td>${listJadwalSidang.ta.user.namaUser}</td>
                                        <td>${listJadwalSidang.ta.judul}</td>
					<td>
                                            <c:if test="${(listJadwalSidang.tglSidang == null)}">
                                                <font color="red">BELUM DITENTUKAN</font>
                                            </c:if>
                                            ${listJadwalSidang.tglSidang}
                                        </td>
					<td>
                                            <c:if test="${(listJadwalSidang.tglSidang == null)}">
                                                <font color="red">BELUM DITENTUKAN</font>
                                            </c:if>
                                            ${listJadwalSidang.wktSidang}
                                        </td>
					<td>
                                            <c:if test="${(listJadwalSidang.tglSidang == null)}">
                                                <font color="red">BELUM DITENTUKAN</font>
                                            </c:if>
                                            ${listJadwalSidang.tempatSidang}
                                        </td>
                                        <td>
                                            <c:forEach items="${namaDosen}" var="namaDosen">
                                            <c:if test="${(namaDosen.user.idUser == listJadwalSidang.ta.pembimbing1)}">    
                                            ${namaDosen.user.namaUser}
                                            </c:if>
                                            </c:forEach>
                                        </td>
                                        <td>
                                            <c:if test="${(listJadwalSidang.ta.pembimbing2 == '0')}">
                                                <font color="red">-</font>
                                            </c:if>
                                            <c:forEach items="${namaDosen}" var="namaDosen">
                                            <c:if test="${(namaDosen.user.idUser == listJadwalSidang.ta.pembimbing2)}">    
                                            ${namaDosen.user.namaUser}
                                            </c:if>
                                            </c:forEach>
                                        </td>
                                        <td>
                                            <c:if test="${(listJadwalSidang.tglSidang == null)}">
                                                <font color="red">BELUM DITENTUKAN</font>
                                            </c:if>
                                            <c:forEach items="${namaDosen}" var="namaDosen">
                                            <c:if test="${(namaDosen.user.idUser == listJadwalSidang.penguji1)}">    
                                            ${namaDosen.user.namaUser}
                                            </c:if>
                                            </c:forEach>
                                        </td>                                        
                                        <td>
                                            <c:if test="${(listJadwalSidang.tglSidang == null)}">
                                                <font color="red">BELUM DITENTUKAN</font>
                                            </c:if>
                                            <c:if test="${(listJadwalSidang.penguji2 == '0')}">
                                                <font color="red" align="center">-</font>
                                            </c:if>
                                            <c:forEach items="${namaDosen}" var="namaDosen">
                                            <c:if test="${(namaDosen.user.idUser == listJadwalSidang.penguji2)}">    
                                            ${namaDosen.user.namaUser}
                                            </c:if>
                                            </c:forEach>    
                                        </td>
                                        <td class="options-width">
                                            <a href="SidangTAController?page=detailJadwalSidang&&idTA=${listJadwalSidang.ta.idTA}&&idSidang=${listJadwalSidang.idSidang}&&idUser=${listJadwalSidang.ta.user.idUser}&&jenisSidang=${jenisSidang}&&tglSidang=${listJadwalSidang.tglSidang}" title="Detail" class="icon-3 info-tooltip"></a>
                                        </td>
                                </tr> 
                                </c:forEach>
                                </c:if>
				</table>
				<!--  end product-table................................... --> 
				</form>
			</div>
			<!--  end content-table  -->
		
			<!--  start actions-box ............................................... --><!-- end actions-box........... -->
			
			<!--  start paging..................................................... -->
			
			<!--  end paging................ -->
			
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	Admin Skin &copy; Copyright Internet Dreams Ltd. <span id="spanYear"></span> <a href="">www.netdreams.co.uk</a>. All rights reserved.</div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
 
</body>
</html>